<?php

	/**
	 * This software is 
	 * 
	 * @author Vesic Nevio [ nevio@workspaceat.com ]
	 * @copyright Workspace@ 2008-2009
	 */

	require_once 'Zend/Db.php';
	require_once "Zend/Registry.php";
	
	$config = new Zend_Config(
	    array(
	        'database' => array(
	            'adapter' => 'Mysqli',
	            'params' => array(
	                'dbname' => 'workspaceat',
	                'username' => 'root',
	                'password' => '',
	            )
	        )
	    )
	);
	
	$db = Zend_Db::factory( $config->database );
	$db ->getConnection();
	
	Zend_Registry::set ( "database", $db );